<link rel="stylesheet" type="text/css" href="css/skin.css" />
<link rel="stylesheet" type="text/css" href="css/upload.css" />
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/jquery.form.js"></script>
<script type="text/javascript" src="js/upload.js"></script>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
        <tr>
          <td height="31"><div class="titlebt">图片管理</div></td>
        </tr>
      </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td colspan="2" valign="top">&nbsp;</td>
          <td>&nbsp;</td>
          <td valign="top">&nbsp;</td>
        </tr>
        <tr>
          <td valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td class="left_txt">当前位置：图片管理</td>
              </tr>
              <tr>
                <td height="20"><table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
                    <tr>
                      <td></td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td><table width="100%" height="55" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="10%" height="55" valign="middle"><img src="images/card.jpg" width="54" height="55"></td>
                      <td width="90%" valign="top"><span class="left_txt2">在这里，您可以根据您的网站要求，管理类别信息</span><br>
                        <span class="left_txt2">包括</span><span class="left_txt3">登录名，姓名，状态</span><span class="left_txt2">等。</span></td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td><input type="button" onClick="javascript:window.location.href='admin-listproduct.php';" value="返回上一页">
                  </input></td>
              </tr>
              <tr>
                <td><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="nowtable">
                    <tr>
                      <td class="left_bt2">&nbsp;&nbsp;&nbsp;&nbsp;图片列表</td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td><table style="width:100%;border-collapse:collapse;border:1px solid #006D84" cellspacing="0px">
                    <tr style="background-color:#f2f2f2">
                      <th style="width:15%; border:1px solid #006D84"> 图片链接 </th>                      
                      <th style="width:15%; border:1px solid #006D84"> 更新时间 </th>
                      <th style="width:10%;border:1px solid #006D84"> 操作 </th>
                    </tr>
                    {section name=uID loop=$files.data }
                    <tr style="text-align:center">                      
                      <td class="left_bt2" style="width:15%;border:1px solid #006D84"> <a href="{$files.data[uID].fdURL}" target="_blank"><img src="{$files.data[uID].fdURL}" width="100px" height="100px"></a> </td>
                      <td class="left_bt2" style="width:15%;border:1px solid #006D84"> {$files.data[uID].fdUpdated} </td>
                      <td style="width:10%;border:1px solid #006D84">&nbsp;<a href="javascript:if(window.confirm('确定删除？')==true){ldelim}window.location.href='admin-listfile.php?f=del&cid={$files.data[uID].fdContentID}&id={$files.data[uID].id}';{rdelim}"><img src="images/cancel.png" border="0"/></a></td>
                    </tr>
                    {/section}
                    <tr style="border-top:1px dotted #CCCCCC; text-align:center; background-color:#FFFBE5">
                      <td colspan="7"> {if $files.countRs > 0}
                        <li class="left_bt2" style="display:inline; font-size:12px">{$nowtype}共&nbsp;{$files.countRs}&nbsp;项&nbsp;&nbsp;每页显示&nbsp;{$files.pageSize}&nbsp;项&nbsp;&nbsp;第&nbsp;{$files.page}&nbsp;页/共&nbsp;{$files.countPage}&nbsp;页&nbsp;&nbsp;&nbsp;&nbsp; <a href="/admin-listcolumn.php?page={$files.first}" class="a1">首页</a>&nbsp; <a href="/admin-listcolumn.php?page={$files.previous}" class="a1">上一页</a>&nbsp; <a href="/admin-listcolumn.php?page={$files.next}" class="a1">下一页</a>&nbsp; <a href="/admin-listcolumn.php?page={$files.last}" class="a1">尾页</a> </li>
                        {/if} </td>
                    </tr>
                  </table>
                  {if $isShow=='N'}
                  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="nowtable">
                          <tr>
                            <td class="left_bt2">&nbsp;&nbsp;&nbsp;&nbsp;新增图片</td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr>
                      <td><form id="form" method="POST" action="admin-listfile.php" enctype="multipart/form-data" encoding="multipart/form-data">
                          <input type="hidden" name="cid" size="30" value="{$cid}" />
                          <div> <a href="javascript:;" onClick="uploader.addFile(this);">添加图片</a> </div>
                          <div id="fileList"> </div>
                          <input type="submit"/>
                        </form></td>
                    </tr>
                  </table>
                  {/if} </td>
              </tr>
            </table></td>
        </tr>
      </table>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
    <td height="17" valign="top" background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17" /></td>
    <td background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
<script type="text/javascript">
	var uploader = new MyUploader({ formId : "form", uploadAction : "upload.php"});
</script>
</body>
